import Vue from 'vue'
import Router from 'vue-router'
import test from "@/components/test"
import travelPlan from '@/components/travel/travelPlan'
import myTravel from '@/components/travel/myTravel'
import shopHistory from '@/components/travel/shopHistory'
import productType from '@/components/productType'
import commenList from '@/components/comment/list'
import uploadImages from '@/components/comment/uploadImages'
import commenInfo from '@/components/comment/Info'
import commentSunburn from '@/components/comment/sunburn'
import member from '@/components/memberCenter'
import service from '@/components/service'
import mycomment from '@/components/myComment'
import mylike from '@/components/mylike'
import focusnav from '@/components/focusList/nav'
import focusProList from '@/components/focusList/prolist'
import focusList from '@/components/focusList/list'
import couponList from '@/components/coupon/couponList'
import taxRefund from '@/components/taxrefund/taxRefund'
import bindPhone from '@/components/account/bindPhone'
import addAddress from '@/components/account/addAddress'
import realName from '@/components/account/realName'
import perInfo from '@/components/account/perInfo'
import myaddress from '@/components/account/myaddress'
import addpassport from '@/components/account/addpassport'
import messageCenter from '@/components/message/messageCenter'
import secondlist from '@/components/secondPro/prolist'
import shop from '@/components/shop'
import payType from '@/components/payType'
import shareOrder from '@/components/split/shareOrder'

Vue.use(Router)


export default new Router({
  routes: [
    {
      path:'/',
      redirect:'/test'
    },
    {
      path:'/test',
      component:test
    }
    ,
    {
      path: '/travel/travelPlan',
      name: 'travel',
      component:travelPlan,
      redirect:'/travel/travelPlan/myTravel',
      children:[
        {path: 'myTravel', name: 'myTravel', component:myTravel},
        {path: 'shopHistory', name: 'shopHistory', component: shopHistory}
      ]
    },
    {
      path:'/productType',
      name:'productType',
      component:productType
    },
    {
      path:'/commenList/uploadImages',
      name:'uploadImages',
      component:uploadImages
    },
    {
      path:'/commenList',
      name:'commenList',
      component:commenList
    },
    {
      path:'/commenList/info/:inId',
      name:'info',
      component:commenInfo
    },
    {
      path:'/comment/sunburn',
      name:'sunburn',
      component:commentSunburn
    },
    {
      path:'/member',
      name:'member',
      component:member
    },
    {
      path:'/service',
      name:'service',
      component:service
    },
    {
      path:'/mycomment',
      name:'mycomment',
      component:mycomment
    },
    {
      path:'/mylike',
      name:'mylike',
      component:mylike
    },
    {
      path:'/focusnav',
      name:'focusnav',
      component:focusnav,
      children:[
        {path:'list/:id',name:'focusProList',component:focusProList},
        {path:'focusList',name:'focusList',component:focusList}
      ]
    },
    {
      path:'/couponList',
      name:'couponList',
      component:couponList
    },
    {
      path:'/taxRefund',
      name:'taxRefund',
      component:taxRefund
    },
    {
      path:'/account/bindPhone',
      name:'bindPhone',
      component:bindPhone
    },
    {
      path:'/account/addAddress',
      name:'addAddress',
      component:addAddress
    },
    {
      path:'/account/realName',
      name:'realName',
      component:realName
    },
    {
      path:'/account/perInfo',
      name:'perInfo',
      component:perInfo
    },
    {
      path:'/account/myaddress',
      name:'myaddress',
      component:myaddress
    },
    {
      path:'/account/addpassport',
      name:'addpassport',
      component:addpassport
    },
    {
      path:'/message/messageCenter',
      name:'messageCenter',
      component:messageCenter
    },
    {
      path:'/secondPro/prolist',
      name:'secondlist',
      component:secondlist
    },
    {
      path:'/shop',
      name:'shop',
      component:shop
    },
    {
      path:'/payType',
      name:'payType',
      component:payType
    },
    {
      path:'/split/shareOrder',
      name:'shareOrder',
      component:shareOrder
    }
    
  ]
})
